import { applyMiddleware, createStore } from "redux";
import reducer from '@/store/reducers'
import { composeWithDevTools } from "redux-devtools-extension";
import thunk from "redux-thunk";
import { getToken } from "@/utils/token";
const store = createStore(reducer, {
    login: {
        token: getToken()
    }
}, composeWithDevTools(applyMiddleware(thunk)))
export default store